$OpenBSD: patch-commandline_blink1-lib_c,v 1.1 2015/12/23 10:53:54 bluhm Exp $
--- commandline/blink1-lib.c.orig	Wed Sep  9 03:06:56 2015
+++ commandline/blink1-lib.c	Wed Dec 23 00:00:26 2015
@@ -102,7 +102,7 @@ int blink1_getCacheIndexById( uint32_t i )
 {
     if( i > blink1_max_devices ) { // then i is a serial number not an array index
         char serialstr[serialstrmax];
-        sprintf( serialstr, "%X", i);  // convert to wchar_t* 
+        snprintf(serialstr, sizeof(serialstr), "%X", i); // convert to wchar_t*
         return blink1_getCacheIndexBySerial( serialstr );
     }
     return i;
